package net.dopan.pigframe.user.model.dto;

import lombok.*;
import net.dopan.pigframe.user.model.entity.SysUser;

import java.io.Serializable;

/**
 * @Package: net.dopan.pigframe.user.model.dto
 * @Title: UserInfo
 * @Description:
 * commit('SET_ROLES', data)
 * commit('SET_NAME', data)
 * commit('SET_AVATAR', data)
 * commit('SET_INTRODUCTION', data)
 * commit('SET_PERMISSIONS', data)
 * @author: 刘宽
 * @date: 2018/9/2 20:39
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {

    /**
     * 用户基本信息
     */
    private SysUser sysUser;

    /**
     * 权限标识集合
     */
    private String[] permissions;

    /**
     * 角色集合
     */
    private String[] roles;

}
